package com.learn.security.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author YU.TAN
 * @since 2023-06-27
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user_role_link")
public class UserRoleLink implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户与角色关联表主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户表主键
     */
    private Long userId;

    /**
     * 角色表主键
     */
    private Long roleId;

    /**
     * 关联创建时间
     */
    private Date createTime;


}
